package cn.tedu.ivos.application.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author liyuehui
 * @time 2024/7/15 14:45
 */
@Data
public class ApplicationSaveDTO {
    @ApiModelProperty(value = "用车申请表id", example = "1")
    private Long id;
    @ApiModelProperty(value = "申请人id", example = "1")
    private Long userId;
    @ApiModelProperty(value = "申请人姓名", example = "张三")
    private String username;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "用车开始时间", example = "2024-07-12 16:12:00")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "用车结束时间", example = "2024-07-12 16:12:00")
    private Date endTime;
    @ApiModelProperty(value = "驾照图片")
    private String imgUrl;
    @ApiModelProperty(value = "出发地", example = "北京")
    private String departureAddr;
    @ApiModelProperty(value = "目的地", example = "上海")
    private String destinationAddr;
    @ApiModelProperty(value = "用车原因", example = "出差")
    private String reason;
    @ApiModelProperty(value = "其他备注信息", example = "无")
    private String remark;
    @ApiModelProperty(value = "申请表状态", example = "待审批")
    private String status;
    @ApiModelProperty(value = "分配的车辆id", example = "1")
    private Long vehicleId;
    //驳回原因与创建更新时间不在此处锌层或修改,可以去掉
    //新增时前端会传过来审批人id集合,注意:审批人可能不是2个人!
    @ApiModelProperty(value = "审批人id集合")
    private List<Long> auditUserIdList;//[106,103]
}
